package com.hnhy.hnhyscms_ws.service.impl;

import com.hnhy.hnhyscms_ws.dao.ISuppliersDao;
import com.hnhy.hnhyscms_ws.entity.Suppliers;
import com.hnhy.hnhyscms_ws.service.ISuppliersSevice;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class SuppliersService implements ISuppliersSevice {
    @Autowired
    private ISuppliersDao iSuppliersDao;

    @Override
    public List<Suppliers> getAllSuppliers() {
        return iSuppliersDao.getAllSuppliers();
    }

    @Override
    public Suppliers getBySupplierNo(String supplierNo) {
        return iSuppliersDao.getBySupplierNo(supplierNo);
    }

    @Override
    public void deleteSuppliers(String supplierNo) {
        iSuppliersDao.deleteSuppliers(supplierNo);
    }

    @Override
    public void changeBySupplierNo(Suppliers Suppliers) {
        iSuppliersDao.changeBySupplierNo(Suppliers);
    }

    @Override
    public void changeStatus(String supplierNo,Byte status) {
        iSuppliersDao.changeStatus(supplierNo,status);
    }

    @Override
    public void addSuppliers(Suppliers suppliers) { iSuppliersDao.addSuppliers(suppliers); }

    @Override
    public Suppliers findMaxId() { return iSuppliersDao.findMaxId(); }
}
